package com.lggry.polymorphsm1;

public class Test {
    public static void main(String[] args) {
        //目标：认识多态的代码
        Animal a1 = new Wolf();
        a1.run();
        Animal a2 = new Snake();
        a2.run();
    }

    //多态：父类引用指向子类对象
}
